How Do Hallucinations Work?